package com.vhly.ddxdecompiler.dexreader.file.constant;

import com.vhly.ddxdecompiler.dexreader.file.DexFile;
import com.vhly.ddxdecompiler.dexreader.file.MethodIdsSection;
import com.vhly.ddxdecompiler.dexreader.file.mixeditem.MethodIdItem;

/**
 * Created by IntelliJ IDEA.
 * User: vhly[FR]
 * Date: 2009-10-21
 * Time: 22:11:37
 * Platform: Mac OS X 10.5.8
 *
 * @author vhly[FR]
 */
public class CstMethod implements CstConstant{
    private int methodIndex;

    private MethodIdItem method;

    public CstMethod(int index) {
        methodIndex = index;
    }

    public void reloc(DexFile dex) {
        MethodIdsSection methodIds = dex.getMethodIds();
        method = methodIds.indexOf(methodIndex);
    }

    public Object getJavaData() {
        return null;
    }

    public String getJavaType() {
        return null;
    }
}
